import 'package:self32/generated/json/base/json_field.dart';
import 'package:self32/generated/json/inventory_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class InventoryEntity {

	String? reader;
	String? uid;
	@JSONField(name: "scan_count")
	String? scanCount;
	@JSONField(name: "block_data")
	String? blockData;
	List<InventoryAnts>? ants;
  
  InventoryEntity();

  factory InventoryEntity.fromJson(Map<String, dynamic> json) => $InventoryEntityFromJson(json);

  Map<String, dynamic> toJson() => $InventoryEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class InventoryAnts {
  dynamic no;
  dynamic count;

  InventoryAnts();

  factory InventoryAnts.fromJson(Map<String, dynamic> json) => $InventoryAntsFromJson(json);

  Map<String, dynamic> toJson() => $InventoryAntsToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}